﻿<Application x:Class="MouseExtender.App"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:entities="clr-namespace:MouseExtender.Logic.Entities"
        xmlns:winforms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        xmlns:resx="clr-namespace:MouseExtender.Resources"
        StartupUri="MainWindow.xaml" ShutdownMode="OnMainWindowClose" DispatcherUnhandledException="Application_DispatcherUnhandledException">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources\Shared.xaml"/>
                <ResourceDictionary Source="Resources\Menu.xaml"/>
                <ResourceDictionary Source="Resources\ToolTip.xaml"/>
                <ResourceDictionary Source="Resources\Slider.xaml"/>
                <ResourceDictionary Source="Resources\CheckBox.xaml"/>
                <ResourceDictionary Source="Resources\ScrollBar.xaml"/>
                <ResourceDictionary Source="Resources\TabControl.xaml"/>
                <ResourceDictionary>
                    <Style x:Key="SettingsButtons">
                        <Setter Property="Control.Width" Value="75"/>
                        <Setter Property="Control.Height" Value="23"/>
                        <Setter Property="Control.Margin" Value="2,1,2,1"/>
                        <Setter Property="Control.Padding" Value="3,1,3,1"/>
                    </Style>
                    <DataTemplate x:Key="ExcludedProgramItemTemplate" DataType="{x:Type entities:ExcludedProgram}">
                        <TextBlock Text="{Binding Name}"/>
                    </DataTemplate>
                    <winforms:OpenFileDialog x:Key="ofdAddExcludedProgram" DefaultExt=".exe" DereferenceLinks="True" Multiselect="False" Title="{x:Static resx:UIResources.ExcludedPrograms_OpenDialogTitle}" Filter="{x:Static resx:UIResources.ExcludedPrograms_FileFilter}"/>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>